package io.kiki.sba.registry.common.model.client.pb;

/**
 * Protobuf type {@code SubscriberRegisterPb}
 */
public final class SubscriberRegisterPb extends com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:SubscriberRegisterPb)
        SubscriberRegisterPbOrBuilder {
    public static final int SCOPE_FIELD_NUMBER = 1;
    public static final int BASEREGISTER_FIELD_NUMBER = 2;
    public static final int ACCEPTENCODING_FIELD_NUMBER = 3;
    public static final int ACCEPTMULTI_FIELD_NUMBER = 4;
    private static final long serialVersionUID = 1L;
    // @@protoc_insertion_point(class_scope:SubscriberRegisterPb)
    private static final SubscriberRegisterPb DEFAULT_INSTANCE;
    private static final com.google.protobuf.Parser<SubscriberRegisterPb> PARSER = new com.google.protobuf.AbstractParser<SubscriberRegisterPb>() {
        @java.lang.Override
        public SubscriberRegisterPb parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return new SubscriberRegisterPb(input, extensionRegistry);
        }
    };

    static {
        DEFAULT_INSTANCE = new SubscriberRegisterPb();
    }

    private volatile java.lang.Object scope_;
    private BaseRegisterPb baseRegister_;
    private volatile java.lang.Object acceptEncoding_;
    private boolean acceptMulti_;
    private byte memoizedIsInitialized = -1;

    // Use SubscriberRegisterPb.newBuilder() to construct.
    private SubscriberRegisterPb(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
    }

    private SubscriberRegisterPb() {
        scope_ = "";
        acceptEncoding_ = "";
    }

    private SubscriberRegisterPb(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
        }
        com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
            boolean done = false;
            while (!done) {
                int tag = input.readTag();
                switch (tag) {
                case 0:
                    done = true;
                    break;
                case 10: {
                    java.lang.String s = input.readStringRequireUtf8();

                    scope_ = s;
                    break;
                }
                case 18: {
                    BaseRegisterPb.Builder subBuilder = null;
                    if (baseRegister_ != null) {
                        subBuilder = baseRegister_.toBuilder();
                    }
                    baseRegister_ = input.readMessage(BaseRegisterPb.parser(), extensionRegistry);
                    if (subBuilder != null) {
                        subBuilder.mergeFrom(baseRegister_);
                        baseRegister_ = subBuilder.buildPartial();
                    }

                    break;
                }
                case 26: {
                    java.lang.String s = input.readStringRequireUtf8();

                    acceptEncoding_ = s;
                    break;
                }
                case 32: {
                    acceptMulti_ = input.readBool();
                    break;
                }
                default: {
                    if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                        done = true;
                    }
                    break;
                }
                }
            }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
        } finally {
            this.unknownFields = unknownFields.build();
            makeExtensionsImmutable();
        }
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return SubscriberRegisterPbOuterClass.internal_static_SubscriberRegisterPb_descriptor;
    }

    public static SubscriberRegisterPb parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
    }

    public static SubscriberRegisterPb parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static SubscriberRegisterPb parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
    }

    public static SubscriberRegisterPb parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static SubscriberRegisterPb parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
    }

    public static SubscriberRegisterPb parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static SubscriberRegisterPb parseFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static SubscriberRegisterPb parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static SubscriberRegisterPb parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static SubscriberRegisterPb parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }

    public static SubscriberRegisterPb parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static SubscriberRegisterPb parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static Builder newBuilder() {
        return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(SubscriberRegisterPb prototype) {
        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    public static SubscriberRegisterPb getDefaultInstance() {
        return DEFAULT_INSTANCE;
    }

    public static com.google.protobuf.Parser<SubscriberRegisterPb> parser() {
        return PARSER;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
        return new SubscriberRegisterPb();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
        return this.unknownFields;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
        return SubscriberRegisterPbOuterClass.internal_static_SubscriberRegisterPb_fieldAccessorTable.ensureFieldAccessorsInitialized(SubscriberRegisterPb.class, SubscriberRegisterPb.Builder.class);
    }

    /**
     * <code>string scope = 1;</code>
     *
     * @return The scope.
     */
    @java.lang.Override
    public java.lang.String getScope() {
        java.lang.Object ref = scope_;
        if (ref instanceof java.lang.String) {
            return (java.lang.String) ref;
        } else {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            scope_ = s;
            return s;
        }
    }

    /**
     * <code>string scope = 1;</code>
     *
     * @return The bytes for scope.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getScopeBytes() {
        java.lang.Object ref = scope_;
        if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            scope_ = b;
            return b;
        } else {
            return (com.google.protobuf.ByteString) ref;
        }
    }

    /**
     * <code>.BaseRegisterPb baseRegister = 2;</code>
     *
     * @return Whether the baseRegister field is set.
     */
    @java.lang.Override
    public boolean hasBaseRegister() {
        return baseRegister_ != null;
    }

    /**
     * <code>.BaseRegisterPb baseRegister = 2;</code>
     *
     * @return The baseRegister.
     */
    @java.lang.Override
    public BaseRegisterPb getBaseRegister() {
        return baseRegister_ == null ? BaseRegisterPb.getDefaultInstance() : baseRegister_;
    }

    /**
     * <code>.BaseRegisterPb baseRegister = 2;</code>
     */
    @java.lang.Override
    public BaseRegisterPbOrBuilder getBaseRegisterOrBuilder() {
        return getBaseRegister();
    }

    /**
     * <code>string acceptEncoding = 3;</code>
     *
     * @return The acceptEncoding.
     */
    @java.lang.Override
    public java.lang.String getAcceptEncoding() {
        java.lang.Object ref = acceptEncoding_;
        if (ref instanceof java.lang.String) {
            return (java.lang.String) ref;
        } else {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            acceptEncoding_ = s;
            return s;
        }
    }

    /**
     * <code>string acceptEncoding = 3;</code>
     *
     * @return The bytes for acceptEncoding.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getAcceptEncodingBytes() {
        java.lang.Object ref = acceptEncoding_;
        if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            acceptEncoding_ = b;
            return b;
        } else {
            return (com.google.protobuf.ByteString) ref;
        }
    }

    /**
     * <code>bool acceptMulti = 4;</code>
     *
     * @return The acceptMulti.
     */
    @java.lang.Override
    public boolean getAcceptMulti() {
        return acceptMulti_;
    }

    @java.lang.Override
    public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized == 1)
            return true;
        if (isInitialized == 0)
            return false;

        memoizedIsInitialized = 1;
        return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
        if (!getScopeBytes().isEmpty()) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_);
        }
        if (baseRegister_ != null) {
            output.writeMessage(2, getBaseRegister());
        }
        if (!getAcceptEncodingBytes().isEmpty()) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 3, acceptEncoding_);
        }
        if (acceptMulti_ != false) {
            output.writeBool(4, acceptMulti_);
        }
        unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1)
            return size;

        size = 0;
        if (!getScopeBytes().isEmpty()) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scope_);
        }
        if (baseRegister_ != null) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBaseRegister());
        }
        if (!getAcceptEncodingBytes().isEmpty()) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, acceptEncoding_);
        }
        if (acceptMulti_ != false) {
            size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, acceptMulti_);
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof SubscriberRegisterPb)) {
            return super.equals(obj);
        }
        SubscriberRegisterPb other = (SubscriberRegisterPb) obj;

        if (!getScope().equals(other.getScope()))
            return false;
        if (hasBaseRegister() != other.hasBaseRegister())
            return false;
        if (hasBaseRegister()) {
            if (!getBaseRegister().equals(other.getBaseRegister()))
                return false;
        }
        if (!getAcceptEncoding().equals(other.getAcceptEncoding()))
            return false;
        if (getAcceptMulti() != other.getAcceptMulti())
            return false;
        if (!unknownFields.equals(other.unknownFields))
            return false;
        return true;
    }

    @java.lang.Override
    public int hashCode() {
        if (memoizedHashCode != 0) {
            return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + SCOPE_FIELD_NUMBER;
        hash = (53 * hash) + getScope().hashCode();
        if (hasBaseRegister()) {
            hash = (37 * hash) + BASEREGISTER_FIELD_NUMBER;
            hash = (53 * hash) + getBaseRegister().hashCode();
        }
        hash = (37 * hash) + ACCEPTENCODING_FIELD_NUMBER;
        hash = (53 * hash) + getAcceptEncoding().hashCode();
        hash = (37 * hash) + ACCEPTMULTI_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAcceptMulti());
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
    }

    @java.lang.Override
    public Builder newBuilderForType() {
        return newBuilder();
    }

    @java.lang.Override
    public Builder toBuilder() {
        return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<SubscriberRegisterPb> getParserForType() {
        return PARSER;
    }

    @java.lang.Override
    public SubscriberRegisterPb getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
    }

    /**
     * Protobuf type {@code SubscriberRegisterPb}
     */
    public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
            // @@protoc_insertion_point(builder_implements:SubscriberRegisterPb)
            SubscriberRegisterPbOrBuilder {
        private java.lang.Object scope_ = "";
        private BaseRegisterPb baseRegister_;
        private com.google.protobuf.SingleFieldBuilderV3<BaseRegisterPb, BaseRegisterPb.Builder, BaseRegisterPbOrBuilder> baseRegisterBuilder_;
        private java.lang.Object acceptEncoding_ = "";
        private boolean acceptMulti_;

        // Construct using
        // com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb.newBuilder()
        private Builder() {
            maybeForceBuilderInitialization();
        }

        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            super(parent);
            maybeForceBuilderInitialization();
        }

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return SubscriberRegisterPbOuterClass.internal_static_SubscriberRegisterPb_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
            return SubscriberRegisterPbOuterClass.internal_static_SubscriberRegisterPb_fieldAccessorTable.ensureFieldAccessorsInitialized(SubscriberRegisterPb.class, SubscriberRegisterPb.Builder.class);
        }

        private void maybeForceBuilderInitialization() {
            if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
            }
        }

        @java.lang.Override
        public Builder clear() {
            super.clear();
            scope_ = "";

            if (baseRegisterBuilder_ == null) {
                baseRegister_ = null;
            } else {
                baseRegister_ = null;
                baseRegisterBuilder_ = null;
            }
            acceptEncoding_ = "";

            acceptMulti_ = false;

            return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return SubscriberRegisterPbOuterClass.internal_static_SubscriberRegisterPb_descriptor;
        }

        @java.lang.Override
        public SubscriberRegisterPb getDefaultInstanceForType() {
            return SubscriberRegisterPb.getDefaultInstance();
        }

        @java.lang.Override
        public SubscriberRegisterPb build() {
            SubscriberRegisterPb result = buildPartial();
            if (!result.isInitialized()) {
                throw newUninitializedMessageException(result);
            }
            return result;
        }

        @java.lang.Override
        public SubscriberRegisterPb buildPartial() {
            SubscriberRegisterPb result = new SubscriberRegisterPb(this);
            result.scope_ = scope_;
            if (baseRegisterBuilder_ == null) {
                result.baseRegister_ = baseRegister_;
            } else {
                result.baseRegister_ = baseRegisterBuilder_.build();
            }
            result.acceptEncoding_ = acceptEncoding_;
            result.acceptMulti_ = acceptMulti_;
            onBuilt();
            return result;
        }

        @java.lang.Override
        public Builder clone() {
            return super.clone();
        }

        @java.lang.Override
        public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            return super.setField(field, value);
        }

        @java.lang.Override
        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            return super.clearField(field);
        }

        @java.lang.Override
        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            return super.clearOneof(oneof);
        }

        @java.lang.Override
        public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
            return super.setRepeatedField(field, index, value);
        }

        @java.lang.Override
        public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            return super.addRepeatedField(field, value);
        }

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
            if (other instanceof SubscriberRegisterPb) {
                return mergeFrom((SubscriberRegisterPb) other);
            } else {
                super.mergeFrom(other);
                return this;
            }
        }

        public Builder mergeFrom(SubscriberRegisterPb other) {
            if (other == SubscriberRegisterPb.getDefaultInstance())
                return this;
            if (!other.getScope().isEmpty()) {
                scope_ = other.scope_;
                onChanged();
            }
            if (other.hasBaseRegister()) {
                mergeBaseRegister(other.getBaseRegister());
            }
            if (!other.getAcceptEncoding().isEmpty()) {
                acceptEncoding_ = other.acceptEncoding_;
                onChanged();
            }
            if (other.getAcceptMulti() != false) {
                setAcceptMulti(other.getAcceptMulti());
            }
            this.mergeUnknownFields(other.unknownFields);
            onChanged();
            return this;
        }

        @java.lang.Override
        public final boolean isInitialized() {
            return true;
        }

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            SubscriberRegisterPb parsedMessage = null;
            try {
                parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                parsedMessage = (SubscriberRegisterPb) e.getUnfinishedMessage();
                throw e.unwrapIOException();
            } finally {
                if (parsedMessage != null) {
                    mergeFrom(parsedMessage);
                }
            }
            return this;
        }

        /**
         * <code>string scope = 1;</code>
         *
         * @return The scope.
         */
        public java.lang.String getScope() {
            java.lang.Object ref = scope_;
            if (!(ref instanceof java.lang.String)) {
                com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
                java.lang.String s = bs.toStringUtf8();
                scope_ = s;
                return s;
            } else {
                return (java.lang.String) ref;
            }
        }

        /**
         * <code>string scope = 1;</code>
         *
         * @param value The scope to set.
         * @return This builder for chaining.
         */
        public Builder setScope(java.lang.String value) {
            if (value == null) {
                throw new NullPointerException();
            }

            scope_ = value;
            onChanged();
            return this;
        }

        /**
         * <code>string scope = 1;</code>
         *
         * @return The bytes for scope.
         */
        public com.google.protobuf.ByteString getScopeBytes() {
            java.lang.Object ref = scope_;
            if (ref instanceof String) {
                com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
                scope_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        /**
         * <code>string scope = 1;</code>
         *
         * @param value The bytes for scope to set.
         * @return This builder for chaining.
         */
        public Builder setScopeBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
                throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);

            scope_ = value;
            onChanged();
            return this;
        }

        /**
         * <code>string scope = 1;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearScope() {

            scope_ = getDefaultInstance().getScope();
            onChanged();
            return this;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         *
         * @return Whether the baseRegister field is set.
         */
        public boolean hasBaseRegister() {
            return baseRegisterBuilder_ != null || baseRegister_ != null;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         *
         * @return The baseRegister.
         */
        public BaseRegisterPb getBaseRegister() {
            if (baseRegisterBuilder_ == null) {
                return baseRegister_ == null ? BaseRegisterPb.getDefaultInstance() : baseRegister_;
            } else {
                return baseRegisterBuilder_.getMessage();
            }
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public Builder setBaseRegister(BaseRegisterPb value) {
            if (baseRegisterBuilder_ == null) {
                if (value == null) {
                    throw new NullPointerException();
                }
                baseRegister_ = value;
                onChanged();
            } else {
                baseRegisterBuilder_.setMessage(value);
            }

            return this;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public Builder setBaseRegister(BaseRegisterPb.Builder builderForValue) {
            if (baseRegisterBuilder_ == null) {
                baseRegister_ = builderForValue.build();
                onChanged();
            } else {
                baseRegisterBuilder_.setMessage(builderForValue.build());
            }

            return this;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public Builder mergeBaseRegister(BaseRegisterPb value) {
            if (baseRegisterBuilder_ == null) {
                if (baseRegister_ != null) {
                    baseRegister_ = BaseRegisterPb.newBuilder(baseRegister_).mergeFrom(value).buildPartial();
                } else {
                    baseRegister_ = value;
                }
                onChanged();
            } else {
                baseRegisterBuilder_.mergeFrom(value);
            }

            return this;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public Builder clearBaseRegister() {
            if (baseRegisterBuilder_ == null) {
                baseRegister_ = null;
                onChanged();
            } else {
                baseRegister_ = null;
                baseRegisterBuilder_ = null;
            }

            return this;
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public BaseRegisterPb.Builder getBaseRegisterBuilder() {

            onChanged();
            return getBaseRegisterFieldBuilder().getBuilder();
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        public BaseRegisterPbOrBuilder getBaseRegisterOrBuilder() {
            if (baseRegisterBuilder_ != null) {
                return baseRegisterBuilder_.getMessageOrBuilder();
            } else {
                return baseRegister_ == null ? BaseRegisterPb.getDefaultInstance() : baseRegister_;
            }
        }

        /**
         * <code>.BaseRegisterPb baseRegister = 2;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<BaseRegisterPb, BaseRegisterPb.Builder, BaseRegisterPbOrBuilder> getBaseRegisterFieldBuilder() {
            if (baseRegisterBuilder_ == null) {
                baseRegisterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<BaseRegisterPb, BaseRegisterPb.Builder, BaseRegisterPbOrBuilder>(getBaseRegister(), getParentForChildren(), isClean());
                baseRegister_ = null;
            }
            return baseRegisterBuilder_;
        }

        /**
         * <code>string acceptEncoding = 3;</code>
         *
         * @return The acceptEncoding.
         */
        public java.lang.String getAcceptEncoding() {
            java.lang.Object ref = acceptEncoding_;
            if (!(ref instanceof java.lang.String)) {
                com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
                java.lang.String s = bs.toStringUtf8();
                acceptEncoding_ = s;
                return s;
            } else {
                return (java.lang.String) ref;
            }
        }

        /**
         * <code>string acceptEncoding = 3;</code>
         *
         * @param value The acceptEncoding to set.
         * @return This builder for chaining.
         */
        public Builder setAcceptEncoding(java.lang.String value) {
            if (value == null) {
                throw new NullPointerException();
            }

            acceptEncoding_ = value;
            onChanged();
            return this;
        }

        /**
         * <code>string acceptEncoding = 3;</code>
         *
         * @return The bytes for acceptEncoding.
         */
        public com.google.protobuf.ByteString getAcceptEncodingBytes() {
            java.lang.Object ref = acceptEncoding_;
            if (ref instanceof String) {
                com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
                acceptEncoding_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        /**
         * <code>string acceptEncoding = 3;</code>
         *
         * @param value The bytes for acceptEncoding to set.
         * @return This builder for chaining.
         */
        public Builder setAcceptEncodingBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
                throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);

            acceptEncoding_ = value;
            onChanged();
            return this;
        }

        /**
         * <code>string acceptEncoding = 3;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearAcceptEncoding() {

            acceptEncoding_ = getDefaultInstance().getAcceptEncoding();
            onChanged();
            return this;
        }

        /**
         * <code>bool acceptMulti = 4;</code>
         *
         * @return The acceptMulti.
         */
        @java.lang.Override
        public boolean getAcceptMulti() {
            return acceptMulti_;
        }

        /**
         * <code>bool acceptMulti = 4;</code>
         *
         * @param value The acceptMulti to set.
         * @return This builder for chaining.
         */
        public Builder setAcceptMulti(boolean value) {

            acceptMulti_ = value;
            onChanged();
            return this;
        }

        /**
         * <code>bool acceptMulti = 4;</code>
         *
         * @return This builder for chaining.
         */
        public Builder clearAcceptMulti() {

            acceptMulti_ = false;
            onChanged();
            return this;
        }

        @java.lang.Override
        public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            return super.setUnknownFields(unknownFields);
        }

        @java.lang.Override
        public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            return super.mergeUnknownFields(unknownFields);
        }

        // @@protoc_insertion_point(builder_scope:SubscriberRegisterPb)
    }
}
